import { Pagination } from 'nestjs-typeorm-paginate';
import { Book } from '../modules/book/book.entity';

// 图书分页的Controller返回类型
export interface BookListResponse {
  code: number;
  result: Pagination<Book> | null;
  message: string;
}

// 分页的参数选项
export interface PaginationOptions {
  page: number;
  limit: number;
  keyword?: string;
  sort?: string; // 根据排序的字段
  order: 'ASC' | 'DESC'; // 顺序或者逆序
}
